//
//  EOCLocation.m
//  实现description方法
//
//  Created by weiguang on 2017/2/8.
//  Copyright © 2017年 weiguang. All rights reserved.
//

#import "EOCLocation.h"

@implementation EOCLocation

- (id)initWithTitle:(NSString *)title latitude:(float)latitude longitude:(float)longitude{
    if (self = [super init]) {
        _title = title;
        _latitude = latitude;
        _longitude = longitude;
    }
    return self;
}

- (NSString *)description{
    return [NSString stringWithFormat:@"<%@: %p, %@>",[self class],
            self,
            @{@"title":_title,
              @"latitude":@(_latitude),
              @"longitude":@(_longitude)}
            ];
}

@end
